/**
 * This file is part of Lineage II Client Data Parser.
 * 
 * Lineage II Client Data Parser is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.

 * Lineage II Client Data Parser is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with Lineage II Client Data Parser.  If not, see <http://www.gnu.org/licenses/>.
 */
package net.l2emuproject;

/**
 * @author Savormix
 *
 */
public abstract class VersionService
{
	private static final Package	SERVICE		= VersionService.class.getPackage();
	private static final String		VERSION		= SERVICE.getImplementationVersion();
	private static final String		ALT_VERSION	= "[Unknown version, not built]";
	private static final String		NAME		= SERVICE.getImplementationTitle();
	private static final String		ALT_NAME	= "Lineage II Client Data Parser";

	/** @return version information */
	public static final String getVersion()
	{
		if (VERSION == null)
			return ALT_VERSION;
		return VERSION;
	}

	/** @return application name */
	public static final String getAppName()
	{
		if (NAME == null)
			return ALT_NAME;
		return NAME;
	}

	/** @return default string added to generated files, without comment */
	public static final String getGenerator()
	{
		return "This file was generated by " + getAppName() + " v" + getVersion();
	}
}
